// http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/comment-page-4/#comment-19012
//https://developer.apple.com/library/mac/#documentation/StoreKit/Reference/SKPaymentRequest_Class/Reference/Reference.html
// InAppPurchaseManager.h

// NOTE: InAppPurchase is a singleton class that handles every in app purchase for our app. 


#import <StoreKit/StoreKit.h>

#define kInAppPurchaseManagerProductsFetchedNotification @"kInAppPurchaseManagerProductsFetchedNotification"

#define kInAppPurchaseManagerTransactionSucceededNotification @"kInAppPurchaseManagerTransactionSucceededNotification"

#define kInAppPurchaseManagerTransactionFailedNotification @"kInAppPurchaseManagerTransactionFailedNotification"





@interface InAppPurchase : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver>
{
    SKProduct *proUpgradeProduct;
    SKProductsRequest *productsRequest;

    NSString*          m_ProductID;
}

// public methods
- (void)OCloadStore : (NSString*) ProductID;
- (BOOL)OCcanMakePurchases;
- (void)OCpurchaseProUpgrade;
- (BOOL)OCIsLoadingStoreComplete;
- (void)OCRestorePurchase;

@end 